package com.cc.bsp.domain.user;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.cc.bsp.domain.AbstractDomain;
import com.cc.bsp.domain.DomainRepositoryService;
import com.cc.bsp.domain.exception.DomainException;
import com.cc.bsp.persistence.entity.impl.ElementEntity;

public class ElementDomain extends AbstractDomain {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2862121837635392884L;

	private String elementId;

	private String elementName;

	private ElementEntity parent;

	private Set children = new HashSet();

	private String note;

	private Date createDate;

	private Date updateDate;

	public String getElementId() {
		return elementId;
	}

	public void setElementId(String elementId) {
		this.elementId = elementId;
	}

	public String getElementName() {
		return elementName;
	}

	public void setElementName(String elementName) {
		this.elementName = elementName;
	}

	public ElementEntity getParent() {
		return parent;
	}

	public void setParent(ElementEntity parent) {
		this.parent = parent;
	}

	public Set getChildren() {
		return children;
	}

	public void setChildren(Set children) {
		this.children = children;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public DomainRepositoryService getRepositoryService()
			throws DomainException {
		// TODO Auto-generated method stub
		return null;
	}

}
